<?php

class ZFKiller_View_Helper_FormUfCidade extends Zend_View_Helper_FormSelect {

	public function formUfCidade($name, $value = null, $attribs = null, $options = null, $listsep = "<br />\n") {

		$attribsUf = $attribs;
		$attribsUf['id'] = $attribsUf['id'] . 'Uf';
		
		if(!isset($attribsUf['class'])) {
			$attribsUf['class'] = '';
		}
		$attribsUf['class'] .= ' uf';

		if(!isset($attribs['class'])) {
			$attribs['class'] = '';
		}
		$attribs['class'] .= ' cidade';

		$nameUf = $name . 'Uf';

		$formSelectUf = $this->formSelect($nameUf, $this->view->optionsUFValue, $attribsUf, $this->view->optionsUF);
		$formSelectCidade = $this->formSelect($name, $value, $attribs, $options);

		return $formSelectUf . $formSelectCidade;
	}

}